package com.itheima.server.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 线索跟进记录实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hk_clue_follow") // 映射数据库表名
public class ClueFollow  extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 线索ID
     */
    @TableField("clue_id")
    private Integer clueId;

    /**
     * 意向学科（如：01-语文，02-数学，具体看字典）
     */
    @TableField("subject")
    private String subject;

    /**
     * 跟进记录（最多50字符）
     */
    @TableField("record")
    private String record;

    /**
     * 意向等级（如：A、B、C 等）
     */
    @TableField("level")
    private String level;

    /**
     * 下次跟进时间
     */
    @TableField("next_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime nextTime;

    /**
     * 类型
     */
    @TableField("type")
    private String type;
@TableField("false_reason")
    /**
     * 放弃原因
     */
    private String falseReason;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private Integer sex;
    @TableField(exist = false)
    private Integer age;
    @TableField(exist = false)
    private String weixin;
    @TableField(exist = false)
    private String qq;






}